/*------------- #HEADER --------------*/



.header {
  height: 70px;
  background-color: $secondary-color;
  padding-right: 70px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 21;

  .page-title {
	padding: 26px 50px 26px 100px;
	text-transform: uppercase;
	float: left;
	height: 100%;
	min-width: 170px;

	& > * {
	  color: $white-color;
	  margin: 0;
	}

  }

}

.header-content-wrapper {
   height: 100%;
}

.header-spacer {
  display: block;
  height: 110px;
}

.header-spacer-small {
  height: 70px;
}

.header-spacer--standard {
  height: 150px;
}

.search-bar {
  float: left;
  width: 500px;
  height: 70px;
  background-color: #494c62;
  position: relative;

  &.w-search {
	width: 500px;
	min-height: 70px;
	background-color: #494c62;
  }

  .form-group {
	margin-bottom: 0;
	height: 70px;
  }

  .form-control {
	border: none;
	padding: 0;
  }

  .selectize-control {
	position: relative;
	z-index: 20;
	height: 70px;
  }

  .selectize-dropdown {
	background-color: $white-color;
	z-index: 50;
	border: 1px solid #e6ecf5;
	box-shadow: 0 0 34px 0 rgba(63, 66, 87, 0.1);
  }

  .selectize-input {
	height: 70px;

	&.has-items  {

	  input {
		background-color: transparent;
	  }

	& > * {
	  padding: 3px 10px;
	  border-radius: 3px;
	  background-color: #9a9fbf;
	  color: $white-color;
	  display: inline-block;
	  margin-right: 3px;

	  &:first-child {
		margin-left: 15px;
	  }
	}

	}
  }


  .form-group.with-button {

	button {
	  color: #696d87;
	  fill: #696d87;
	  background-color: #494c62;
	  width: 50px;

	  svg {
		height: 22px;
		width: 22px;
	  }
	}

	input {
	  height: 100%;
	  border: none;
	  color: #9a9fbf;
	}
  }

  .notification-list {
	position: absolute;
	top: -100%;
	visibility: hidden;
	opacity: 0;
	transition: all .3s ease;
	z-index: 50;
	background: #fff;
	width: 100%;
	box-shadow: 0 0 34px 0 rgba(63, 66, 87, 0.1);
	border-right: 1px solid $border-color;
	border-left: 1px solid $border-color;
  }

  .notification-list .notification-icon svg {
	width: 20px;
	height: 20px;
  }
}

.control-block {
  float: right;
  height: 100%;
  display: flex;
  align-items: center;

  .author-thumb {
	margin-right: 8px;
	position: unset;
  }

  .author-title {
	font-weight: 700;
	font-size: 12px;
	color: $white-color;

	& > svg {
	  margin-left: 15px;
	  fill: $white-color;
	  width: 6px;
	  height: 4px;
	}
  }

  .author-subtitle {
	display: block;
	font-weight: 700;
	color: #9a9fbf;
	font-size: 8px;
  }
}

.link-find-friend {
  padding: 25px 20px;
  color: $white-color;
  font-size: 12px;
  font-weight: 500;
  display: inline-block;
}

.control-icon {
  margin-right: 29px;
  fill: $icon-color;
  margin-top: 8px;

  & > svg {
	height: 20px;
  }

  &.has-items {
	fill: $white-color;
  }

  .label-avatar {
	width: 19px;
	height: 19px;
	line-height: 19px;
	top: -12px;
	right: -9px;
  }

  .more-dropdown {
	width: 380px;
	top: 35px;
	right: -180px;
	padding: 0 0 70px 0;

	.view-all {
	  padding: 20px;
	  color: $white-color;

	  &:hover {
		color: $white-color;
	  }
	}

	.notification-list {
	  padding: 0;
	}
  }

  .ui-block-title {
	a {
	  display: inline-block;
	  float: right;
	  margin-left: 20px;
	  text-transform: uppercase;
	  font-size: 9px;
	  padding: 0;
	}
  }

  .accept-request {
	padding: 0.5rem;
	font-size: 0.688rem;
	color: $white-color;
	display: inline-block;

	&:hover {
	  color: $white-color;
	}
  }

  .notification-list {

	.author-thumb {
	  height: 34px;
	  width: 34px;
	  margin-right: 0;
	  overflow: hidden;
	}

	.notification-friend {
	  padding: 0;
	  font-size: 14px;
	}
  }

  .notification-list {

	.notification-link {
	  padding: 0;
	  display: inline-block;
	}

	.notification-event {
	  width: 75%;
	}
  }

  .notification-list.friend-requests .accepted {

	.notification-link {
	  padding: 0;
	  display: inline-block;
	}

	.notification-icon {
	  margin-top: 0;
	}

  }

  .notification-list.friend-requests .notification-event {
	width: 60%;
  }

  .notification-list .comment-photo {

	margin-top: 15px;
	max-width: 215px;

	span {
	  font-size: 11px;
	}
  }

  .notification-list li > * {
	vertical-align: top;
  }

  .notification-list .notification-icon  {
	margin-top: 0;

	svg {
	  height: 20px;
	  width: 20px;
	}
  }

  .chat-message li.chat-group .author-thumb {
	width: 36px;
  }

  .notification-list.chat-message .notification-icon svg {
	height: 24px;
	width: 24px;
  }

  .mCustomScrollbar {
	overflow: hidden;
	max-height: 300px;
  }

  .ps > .ps__scrollbar-y-rail, .ps:hover > .ps__scrollbar-y-rail {
	left: 0;
	top: 40px !important;
  }
}


.view-all {
  position: absolute;
  left: 0;
  width: 100%;
  bottom: 0;
  z-index: 20;
  padding: 20px;
  color: $white-color;
  font-size: 12px;
  font-weight: 700;
  display: block;
  text-align: center;
  border-radius: 0 0 5px 5px;

  &:hover {
	color: $white-color;
  }
}

.author-page {
  margin-left: 50px;

  .more-dropdown {
	width: 230px;
	top: calc(100% + 5px);
	right: -30px;
	padding: 0;
  }

  .chat-settings {
	padding: 15px 40px;

	a {
	  color: $body-font-color;

	  &:hover {
		color: $heading-color;
	  }
	}

	.icon-status {
	  margin-right: 20px;
	  position: relative;
	  border: none;
	}
  }

  .account-settings {
	padding: 15px 25px;
	margin-bottom: 0;

	a {
	  padding: 13px 0;
	}
  }

  .mCustomScrollbar {
	max-height: calc(100vh - 40px);
  }
}

.account-settings {
  padding: 15px 25px;
  margin-bottom: 0;

  a {
	padding: 13px 0;
	font-size: 12px;
	color: #515365;
	display: block;
	font-weight: 700;

	&:hover {
	  color: $primary-color;
	}

	& > * {
	  display: inline-block;
	  vertical-align: middle;
	}

  }
}

.custom-status {
  margin: 15px 25px;

  input {
	padding: 0.5rem 1.1rem;
	font-size: 12px;
  }

  &.form-group.with-button button {
	border-radius: 0 5px 5px 0;
	background-color: $purple;
	overflow: hidden;

	svg {
	  fill: $white-color;
	  width: 14px;
	  height: 12px;
	}
  }
}

.account-settings {

  a {
	padding: 13px 0;
  }

  svg {
	margin-right: 15px;
	fill: $icon-color;
	width: 20px;
	height: 20px;
  }
}




/*--------TOP-HEADER--------*/


.top-header {
  position: relative;

  &.top-header-favorit {
	.top-header-author {
	  transform: translate(0);
	  left: 100px;
	  bottom: -40px;
	  z-index: 5;
	}

	.author-thumb {
	  float: left;
	  margin-right: 30px;
	}

	.author-content {
	  text-align: left;
	  margin-top: 20px;
	  float: left;
	  color: $white-color;
	}

	.author-name {
	  color: $white-color;
	}
  }
}

.top-header-thumb {
	position: relative;

  img {
	width: 100%;
	border-radius: 5px 5px 0 0;
	overflow: hidden;
  }

  &:after {
	content: '';
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	box-shadow: inset 0px -120px 55px -30px rgba(0,0,0,0.5);
  }

}

.profile-menu {
  margin-bottom: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  justify-content: space-around;

  li {

	& > div, a {
	  font-size: 14px;
	  font-weight: 700;
	  color: $grey-lighter;
	  display: block;

	  &:hover {
		color: $heading-color;
	  }

	  &.active {
		color: $heading-color;
	  }
	}
  }

  .more-dropdown {
	width: 230px;
	top: calc(100% + 10px);
	right: -25px;

	li {
	  display: block;
	}
  }

   li .more-dropdown a {
	 padding: 10px 0;
	 font-size: 13px;
  }
}

.top-header-author {
  position: absolute;
  left: 50%;
  transform: translate(-50%, 0);
  bottom: 15px;
  text-align: center;

  .author-thumb {
	border-radius: 100%;
	border: 6px solid $white-color;
	margin: 0 auto;
	overflow: hidden;
	width: 132px;
	height: 132px;
	background-color: #FDFBEE;

	img {
	  border-radius: 0;
	}
  }
}

.profile-section {
  position: relative;
  padding: 38px 0;
  z-index: 19;

  .control-block-button {
	position: absolute;
	right: 38px;
	top: -31px;
  }
}


/*--------HEADER-LANDING--------*/


.header-landing {
  padding: 40px 0;
  float: left;
  width: 100%;
  margin-bottom: 40px;

  svg {
	width: 18px;
	height: 14px;
  }

  .logo {
	  float: left;
	  background-color: transparent;
	  padding: 0;

	  img {
		margin-right: 13px;
	  }
	}

  .profile-menu {
	float: right;

	.olymp-close-icon {
	  position: absolute;
	  right: 0;
	  top: 12px;
	  opacity: 0;
	  visibility: hidden;
	  width: 18px;
	  height: 18px;
	}

	&.expanded-menu {
	  li a {
		visibility: visible;
		opacity: 1;
	  }

	  .olymp-menu-icon {
		opacity: 0;
		visibility: hidden;
	  }

	  .olymp-close-icon {
		opacity: 1;
		visibility: visible;
	  }
	}
  }

  .profile-menu  {
	li {
	  display: block;

	  a {
		padding: 12px 25px;
		font-size: 12px;
		font-weight: 700;
		color: $white-color;
		fill: $white-color;
		display: block;
		visibility: hidden;
		opacity: 0;

		&.js-expanded-menu {
		  visibility: visible;
		  opacity: 1;
		  position: relative;
		}
	  }

	}
  }

  .profile-menu li:first-child a {
	padding-left: 0;
  }

  .profile-menu li:last-child a {
	padding-right: 0;
  }
}

.landing-page {
  position: relative;
  min-height: 100vh;

  &:before {
	content: '';
	display: block;
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background-color: rgba(255,94,58,.95);
	opacity: 1;
	z-index: auto;
  }

  .content-bg:before {
	background: url("../img/landing-users.png") repeat 0 0;
  }

  .content-bg {
	background-color: rgba(255, 94, 58, .95);
	animation-name: sidedownscroll;

	@keyframes sidedownscroll {
	  0% {
		transform: translate3D(0%, 0%, 0);
	  }
	  50% {
		transform: translate3D(-50%, 100%, 0);
	  }
	  100% {
		transform: translate3D(-100%, 200%, 0);
	  }
	}
  }

}

.content-bg-wrap {
  position: absolute;
  overflow: hidden;
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
}

.content-bg:before {
  position: absolute;
  z-index: 1;
  bottom: 0;
  left: 0;
  width: 200%;
  height: 400%;
  content: "";
}

.content-bg {
  position: absolute;
  height: 100%;
  width: 100%;
  animation-name: sideupscroll;
  animation-duration: 30s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-fill-mode: both;
  will-change: transform;
  z-index: -1;
}

.without-animation {
  animation: none;
}


/*------------- #Styles for svg-icons --------------*/

[class^="olymp-"], [class*=" -icon"] {
  height: 26px;
  width: 26px;
  display: inline-block;
}

.post__likes-small {
  width: 16px;
  height: 14px;
}

.post__shared-small {
  width: 24px;
  height: 21px;
}

.post__comments-small {
  width: 18px;
  height: 16px;
}

.post__likes {
  width: 20px;
  height: 18px;
}

.post__comments {
  width: 22px;
  height: 20px;
}

.post__shared {
  width: 26px;
  height: 21px;
}

.fav-icon {
  width: 20px;
  height: 20px;
}

.arrow-down-icon {
  width: 6px;
  height: 4px;
}

.olymp-three-dots-icon {
  width: 16px;
  height: 4px;
}

.olymp-little-delete {
  width: 8px;
  height: 8px;
}

.olymp-trophy-icon {
  width: 18px;
  height: 16px;
}

.fixed-sidebar.fixed-sidebar-responsive {
  display: none;
  height: auto;
  min-height: 70px;
  transition: all .3s ease;

  &.open {
	min-height: 1000vh;
  }
}

.header-responsive {
  display: none;

  .header-content-wrapper {
	z-index: 5;
  }
}

.tab-content-responsive {
  display: none;

  .tab-pane {
	background-color: $white-color;
  }

  .search-bar.w-search {
	background-color: #494c62;
  }

  .mCustomScrollbar {
	max-height: calc(100vh - 140px);
	overflow-y: auto !important;
  }

}



.header-menu {
  margin-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-around;
  float: left;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.55, 0, 0.1, 1);
  background-color: $white-color;

  a {
	font-weight: 700;
	font-size: 13px;
	position: relative;
	color: $heading-color;
	padding: 65px 30px;
	display: block;
  }

  .nav-link.active,
  .nav-item.show .nav-link {
	background-color: transparent;
	cursor: pointer;
	color: inherit;
  }

  .nav-link:hover {
	color: $primary-color;
  }

  .dropdown:hover>.dropdown-menu {
	visibility: visible;
	opacity: 1;
  }

  .dropdown-menu {
	display: block;
	visibility: hidden;
	opacity: 0;
	transition: all .3s ease;
	margin: 0;
	background-color: $secondary-color;
	border-color: $border-color;
	box-shadow: 0 0 34px 0 rgba(63, 66, 87, 0.1);
  }

  .dropdown-item:focus, .dropdown-item:hover {
	color: $primary-color;
	background-color: transparent;
  }

  &.open {
	 transform: translateX(0);
  }
}

.header--standard-wrap {
  display: flex;
  align-items: center;
}

.header--standard {
  background-color: $white-color;
  width: calc(100% - 142px);
  position: fixed;
  left: 71px;
  padding: 0 55px;
  box-shadow: 0 0 34px 0 rgba(63, 66, 87, 0.1);
  z-index: 19;

  .logo {
	background-color: transparent;
	display: block;
	color: inherit;
	overflow: hidden;
	position: relative;
	font-size: 7px;
	padding: 0;

	.logo-title {
	  margin-top: 10px;
	  color: $heading-color;
	  font-size: 18px;
	  overflow: hidden;
	}

	&:hover {
	  color: inherit;
	}
  }

  img {
	margin-right: 17px;
  }

  .header-menu {
	margin-left: auto;

	.dropdown-item {
	  padding: 10px 20px;
	}
  }

  .dropdown-menu {
	background-color: $white-color;
  }
}


.header--standard-dark {
	background-color: $secondary-color;

  .logo {
	color: $white-color;

	.logo-title {
	  color: $white-color;
	}

	&:hover {
	  color: $white-color;
	}
  }
  .header-menu {
	background-color: $secondary-color;

	a {
	  color: $white-color;
	}
  }

  .dropdown-menu {
	background-color: $secondary-color;
  }
}

.open-responsive-menu {
  margin-left: auto;
  display: none;
  fill: $icon-color;

  &:hover {
	fill: $primary-color;
  }
}

.close-responsive-menu {
  position: absolute;
  top: 20px;
  left: 25px;
  fill: $icon-color;
  display: none;
  cursor: pointer;
  transition: all .3s ease;

  svg {
	width: 16px;
	height: 16px;
  }

  &:hover {
	fill: $primary-color;
  }
}


.has-standard-header {
  .fixed-sidebar.right {
	top: 0;
  }

  .fixed-sidebar-right {
	bottom: 0;
  }

  .fixed-sidebar.right .mCustomScrollbar {
	max-height: calc(100vh - 140px);
  }
}

/*------------- Responsive mode styles --------------*/

@media (max-width: 1350px) {
  .search-bar.w-search {
	max-width: 300px;
  }
}

@media (max-width: 1200px) {
  .header-menu a {
	padding: 30px 15px;
  }

  .header-spacer--standard {
	height: 80px;
  }
}

@media (max-width: 1150px) {
  .author-page .author-name {
	display: none;
  }

  .author-page .more-dropdown {
	right: -8px;
	top: calc(100% + 10px);
  }
}

@media (max-width: 1080px) {

  .control-icon .more-dropdown {
	width: 320px;
	right: -140px;
  }

  .control-icon .notification-list .notification-icon {
	float: none;
	margin-top: 10px;
  }

  .control-icon .notification-list.friend-requests .accepted .notification-icon {
	float: right;
  }

  .header .page-title {
	display: none;
  }

  .header {
	padding-left: 70px;
  }

  .header-content-wrapper {
	display: flex;
	justify-content: space-between;
  }

}

@media (max-width: 1024px) {
  .control-icon {
	margin-right: 20px;
  }

  .author-page {
	margin-left: 10px;
  }

  .header--standard {

	& > .container {
	  width: 100%;
	}
  }

  .header-menu a {
	padding: 30px 10px;
  }
}

@media (max-width: 960px) {
  .header--standard-wrap {
	flex-direction: column;
  }

  .header--standard {
	padding: 5px;

	.header-menu {
	  margin-left: 0;
	}
  }

  .header-spacer--standard {
	height: 150px;
  }
}

@media (max-width: 801px) {
  .search-bar.w-search {
	max-width: 200px;
  }

  .top-header-author {
	position: relative;
	bottom: 20px;
	color: $body-font-color;

	.author-name {
	  color: $heading-color;
	}
  }

  .top-header-author {
	margin-top: 20px;
  }

  .profile-section {

	.control-block-button {
	  right: auto;
	  top: -30px;
	  left: 50%;
	  transform: translate(-50%, 0);
	  bottom: auto;
	  width: 100%;
	  text-align: center;
	}
  }

  .top-header.top-header-favorit .top-header-author {
	bottom: 0;
	top: auto;
	position: absolute;
  }

  .top-header.top-header-favorit {
	.profile-section {

	  .control-block-button {
		right: 38px;
		top: -31px;
		left: auto;
		transform: none;
		width: auto;
	  }
	}
  }
}

@media (max-width: 768px) {

  .header, .fixed-sidebar {
	display: none;
  }

  .header-responsive,.fixed-sidebar.fixed-sidebar-responsive {
	display: block;
  }

  .header-responsive {
	.mobile-app-tabs .nav-link {
	  padding: 0 10px;
	}
  }

  .search-bar.w-search {
	width: 100%;
  }

  .tab-content-responsive {
	width: 100%;
	left: 0;
	display: block;
	position: absolute;
	z-index: -1;

	.ps > .ps__scrollbar-y-rail, .ps:hover > .ps__scrollbar-y-rail {
	  display: none;
	}
  }

  .view-all {
	position: relative;
  }

  .search-bar.w-search {
	max-width: 100%;
  }

  .fixed-sidebar-left.sidebar--small {
	height: 70px;
  }

  .control-block {
	float: none;
	display: block;
	height: auto;
	padding: 15px 20px 0;
  }

  .author-page .author-name {
	display: inline-block;
  }

  .control-block .author-title {
	color: $heading-color;
  }

  .control-block .author-thumb {
	position: relative;
  }

  .author-thumb .icon-status {
	border-color: $white-color !important;
  }

  .notification-list .notification-event {
	padding-left: 10px;
  }

  .friend-requests .chat-message-item {
	font-size: 10px;
  }

  .notification-list .notification-friend {
	font-size: 13px;
  }

  .notification-list.chat-message .notification-event {
	width: auto;
  }

  .notification-list.chat-message.chat-message-field .notification-event {
	max-width: 82%;
  }

  .popup-chat .notification-list.chat-message .notification-event {
	width: 75%;
  }

  .tab-content-responsive .ui-block-title a {
	color: $heading-color;
  }

  .tab-content-responsive .notification-list.friend-requests .selectize-dropdown .notification-icon {
	display: inline-block;
	float: right;
  }

  .profile-section {
	padding: 30px 0;
  }

  .header-landing {

	.profile-menu {
	  margin-bottom: 10px;
	  flex-direction: column;
	  text-align: center;
	  position: absolute;
	  left: 50%;
	  transform: translate(-50%, 0);
	  top: calc(100% - 60px);
	  border-radius: 10px;
	  z-index: 50;

	  li {
		order: 2;

		&:last-child {
		  order: 1;
		}

		a {
		  padding: 12px 0;
		}
	  }
	}
  }

  .profile-menu.expanded-menu {
	background-color: $white-color;
	padding: 10px 25px;

	li a {
	  color: $primary-color;
	  fill: $primary-color;

	  &:hover {
		opacity: .7;
	  }
	}
  }

  .header-landing .logo {
	float: none;
	justify-content: center;
  }

  .header--standard-wrap {
	flex-direction: row;
  }

  .header-menu {
	margin: auto;
	flex-direction: column;
	position: fixed;
	height: 100vh;
	width: 270px;
	transform: translateX(100%);
	right: 0;
	top: 0;
	text-align: left;
	justify-content: baseline;
	align-items: baseline;
	padding-top: 50px;
	border-left: 1px solid #e6ecf5;
	box-shadow: 0 0 34px 0 rgba(63, 66, 87, 0.1);

	a {
	  padding: 15px 25px;
	  color: $body-font-color;
	}

	.show .dropdown-menu {
	  opacity: 1;
	  visibility: visible;
	  position: relative;
	}
  }

  .header-menu .dropdown:hover > .dropdown-menu {
	opacity: 0;
	visibility: hidden;
  }

  .header-menu .show.dropdown:hover > .dropdown-menu {
	opacity: 1;
	visibility: visible;
  }

  .dropdown-menu {
	width: 100%;
	top: auto;
  }

  .header--standard .header-menu .dropdown-item {
	padding: 10px 30px;
  }

  .nav-item {
	width: 100%;
  }

  .open-responsive-menu {
	display: block;
  }

  .close-responsive-menu {
	display: block;
  }

  .header-spacer--standard {
	height: 70px;
  }

  .header--standard {
	z-index: 21;
  }

}

@media (max-width: 570px) {
  .top-header.top-header-favorit .top-header-author {
	left: 20px;
  }
}

@media (max-width: 460px) {
  .tab-content-responsive .notification-list .notification-event {
	width: 50%;
  }

  .tab-content-responsive .notification-list .selectize-dropdown .notification-event {
	width: auto;
  }

  .top-header.top-header-favorit .top-header-author {
	bottom: auto;
	top: 0;
	margin-top: 5px;
  }

  .top-header.top-header-favorit .top-header-author .author-thumb {
	width: 60px;
	height: 60px;
	border-width: 2px;
  }

  .top-header.top-header-favorit .author-content {
	margin-top: 0;
  }

  .top-header.top-header-favorit .profile-menu {
	flex-direction: column;

	li {
	  margin-bottom: 5px;
	}
  }

  .control-icon .mCustomScrollbar {
	max-height: 150px;
  }

}

@media (max-width: 420px) {
  .header--standard-wrap {
	flex-direction: column;
  }

  .open-responsive-menu {
	margin-left: 0;
  }

  .header--standard .logo {
	margin-bottom: 30px;
  }

  .header--standard {
	width: 100%;
	left: 0;
	z-index: 20;
  }

  .header-spacer--standard {
	height: 130px;
  }
}